<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends BaseAction {
    public function __construct() {
        parent::__construct();
        
    }
    public function index(){
        $this->display();
    }
    public function top(){
        
        $this->display();
    }
    public function left(){
        $model=D("model");
        $model_title=$model
                ->where(array("model_parent_id"=>0,"model_status"=>1))
                ->order("model_order")
                ->select();
        $name['title']=$model_title;
        $model_model=$model
                ->where(array("model_parent_id"=>array("gt",0),"model_status"=>1))
                ->order("model_order")
                ->select();
        $name['model']=$model_model;
        $this->assign("model",$name);
        
        $this->display();
    }
    
    public function logout(){
        unset($_SESSION['admin_id']);
        $this->success("登出成功");
    }
    
}